package com.yingxin.yxerp.module.inform.entity.builder;

import cn.hutool.core.bean.BeanUtil;
import com.yingxin.yxerp.module.inform.entity.Notice;
import com.yingxin.yxerp.module.inform.vo.req.NoticeCreateVo;

/**
 *
 * @author zhuchangjie
 * @since 2021-12-21
 */
public class NoticeBuilder {

    /**
    * build
    * @param vo
    * @return
    */
    public static Notice build(NoticeCreateVo vo) {
        Notice notice = new Notice();
        BeanUtil.copyProperties(vo, notice);
        return notice;
    }
}
